1 from tkinter import*
2 import random
3 import os
4
5
6 def __information__():
7 filename = 'Std_info_FrontEnd.py'
8 os.system(filename)
9 os.system('notepad'+filename)
10
11 def __FeeReport__():
12 filename = 'Fee_Frontend.py'
13 os.system(filename)
14 os.system('notepad'+filename)
15
16
17 def menu():
18 root = Tk()
19 root.title('Menu')
20 root.geometry('1350x750')
21
22 title_Frame = LabelFrame(root, font = ('arial',50,'bold'), width = 1000, height = 100, bg = 'lightblue', relief = 'raise', bd = 13)
23 title_Frame.grid(row = 0, column = 0, pady = 50)
24
25 title_Label = Label(title_Frame, text = 'School Management System', font = ('arial',30,'bold'), bg = 'lightblue')
26 title_Label.grid(row = 0, column = 0, padx = 150)
27
28
29 #========================================================FRAMES===================================================================
30 Frame_1 = LabelFrame(root, font = ('arial',17,'bold'), width = 1000, height = 100, bg = 'lightblue', relief = 'ridge', bd = 10)
31 Frame_1.grid(row = 1, column = 0, padx = 280)
32 Frame_2 = LabelFrame(root, font = ('arial',17,'bold'), width = 1000, height = 100, bg = 'lightblue', relief = 'ridge', bd = 10)
33 Frame_2.grid(row = 2, column = 0, padx = 130, pady = 7)
34
35
36
37 #========================================================LABELS===================================================================
38 Label_1 = Label(Frame_1, text = 'STUDENT PROFILE', font = ('arial',25,'bold'), bg = 'lightblue')
39 Label_1.grid(row = 0, column = 0, padx = 50, pady = 5)
40 Label_2 = Label(Frame_2, text = 'FEE REPORT', font = ('arial',25,'bold'), bg = 'lightblue')
41 Label_2.grid(row = 0, column = 0, padx = 100, pady = 5)
42
43
44
45 #========================================================BUTTONS===================================================================
46 Button_1 = Button(Frame_1, text = 'VIEW', font = ('arial',16,'bold'), width = 8, command = __information__)
47 Button_1.grid(row = 0, column = 3, padx = 50)
48 Button_2 = Button(Frame_2, text = 'VIEW', font = ('arial',16,'bold'), width = 8, command = __FeeReport__)
49 Button_2.grid(row = 0, column = 3, padx = 50)
50
51
52
53 root.mainloop()
54
55
56
57
58 if __name__ == '__main__':
59 menu()